package bookticket.crm.ticket.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import bookticket.crm.ticket.dao.TicketDao;
import bookticket.crm.ticket.entity.TicketEntity;
import bookticket.crm.ticket.service.TicketService;


@Service
public class TicketServiceImpl implements TicketService {

	@Autowired
	private TicketDao dao;
	
	@Override
	public List<TicketEntity> findAll(Map<String, Object> pageMap) {
		return dao.findAll(pageMap);
	}

	@Override
	public int getTotalCounter() {
		return dao.getTotalCounter();
	}

	@Override
	public int add(TicketEntity ticketEntity) {
		return dao.add(ticketEntity);
	}

	@Override
	public int deleteByIds(List<Integer> ids) {
		return dao.deleteByIds(ids);
	}

	@Override
	public int update(TicketEntity ticketEntity) {
		return dao.update(ticketEntity);
	}

	@Override
	public TicketEntity findById(Integer id) {
		return dao.findById(id);
	}

}
